/* 公共样式 */
/* 字符集声明 */
@charset "utf-8";
/* 内外边距默认样式去掉 */
body,h1,h2,h3,h4,h5,h6,p,ul,dl,dd,dt,li,ol{ margin: 0;padding: 0;}
/* 列表去掉小圆点 */
ul,ol{list-style: none;}
/* 去掉a的下划线 */
a{
    text-decoration: none;
}
/* 垂直对齐 */
img{vertical-align: bottom;}
/* 版心 */
.container{
    width: 1200px;
    margin: 0 auto;
}


body {
    display: flex;
    flex-direction: column;

    header {
        /* 保证屏幕最小宽度为版心宽度 */
        min-width: 1200px;

        a {
            color: #fff;
        }

        padding: 0 20px;
        display: flex;
        justify-content: space-between;
        height: 70px;
        width: 100%;
        border-bottom: 1px solid #ccc;
        line-height: 70px;
        position: absolute;
        z-index: 50;

        .logodiv {
            height: 70px;
            width: 130px;
        }

        .register {
            background-color: rgb(237, 81, 10);
            border: none;
            height: 30px;
            width: 90px;
            border-radius: 15px;


        }

        .login {
            border: 1px solid green;
            padding: 3px 15px;
            border-radius: 25px;
            font-size: 14px;
            margin-right: 15px;
            border: 1px solid #ccc;
            background: rgba(255, 255, 255, 0.1);
        }

        .img {
            .logo {
                position: absolute;
                top: 50%;
                transform: translateY(-25%);
            }
        }

        nav {
            display: flex;
            justify-content: space-around;

            a {
                margin: 0 8px;
            }

            a.active {
                padding-bottom: 20px;
                font-size: 18px;
                border-bottom: 2px solid rgb(16, 174, 47);
                line-height: 65px;
            }
        }

    }
}




